local prefix = KEYS[1]
local value = ARGV[2]
local allEnough = true -- 是否全部满足
local len = #ARGV
for  idx, key in pairs(ARGV)
do
    if(redis.call('exists', prefix..key) == 1) then
        allEnough = false
        break
    end
end
-- 如果全部满足，则设置锁
if (allEnough == false) then
    return 0
else
    for i = 1, len do
        redis.call('setex', prefix ..ARGV[i], 5, value)
    end
end
return 1
